package router

import (
	"api-gatwarw/handler/api"

	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {
	r := gin.Default()
	user := r.Group("user")
	{
		user.POST("register", api.Register)
		user.POST("login", api.Login)
	}
	return r
}
